namespace TSL.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Data;
    using TSL.DAL;
    using TSL.Model;

    public class sys_bank
    {
        private readonly TSL.DAL.sys_bank dal = new TSL.DAL.sys_bank();

        public void Addback(TSL.Model.sys_bank model)
        {
            this.dal.Addback(model);
        }

        public void Addsys_bank(TSL.Model.sys_bank model)
        {
            this.dal.Addsys_bank(model);
        }

        public void Delete(string ID)
        {
            this.dal.Delete(ID);
        }

        public void Deletesys_bank(string ID)
        {
            this.dal.Deletesys_bank(ID);
        }

        public bool Exists(string name)
        {
            return this.dal.Exists(name);
        }

        public List<TSL.Model.sys_bank> GetListArray()
        {
            return this.dal.GetListArray("");
        }

        public List<TSL.Model.sys_bank> GetListArray(string strWhere)
        {
            return this.dal.GetListArray(strWhere);
        }

        public List<TSL.Model.sys_bank> GetListArrayPage(string strWhere, int PageNo, int PageSize, out int recordCount)
        {
            return this.dal.GetListArrayPage(strWhere, PageNo, PageSize, out recordCount);
        }

        public List<TSL.Model.sys_bank> GetListArray(string strWhere, string username, string regfrom, string stratetime, string endtime)
        {
            return this.dal.GetListArray(strWhere, username, regfrom, stratetime, endtime);
        }

        public List<TSL.Model.sys_bank> GetListArray(string strWhere,string qihao, string stratetime, string endtime)
        {
            return this.dal.GetListArray(strWhere, qihao, stratetime, endtime);
        }

        public List<TSL.Model.sys_bank> GetListArrayBySupID(string supID)
        {
            string strWhere = " ID=" + supID;
            return this.dal.GetListArray(strWhere);
        }

        public List<TSL.Model.sys_bank> GetListBank(string strWhere)
        {
            return this.dal.GetListBank(strWhere);
        }

        public DataSet GetListFromView(string strWhere)
        {
            return this.dal.GetListFromView(strWhere);
        }

        public TSL.Model.sys_bank GetModel(string ID)
        {
            return this.dal.GetModel(ID);
        }

        public TSL.Model.sys_bank GetModel(string name, string password)
        {
            return this.dal.GetModel(name, password);
        }

        public void refuse(TSL.Model.sys_bank model)
        {
            this.dal.refuse(model);
        }

        public void Update(TSL.Model.sys_bank model)
        {
            this.dal.Update(model);
        }

        public void Update_Bank_Back(TSL.Model.sys_bank model)
        {
            this.dal.Update_Bank_Back(model);
        }
    }
}

